package com.zjy.pgcms.util;

import com.zjy.pgcms.entity.User;

import javax.servlet.http.HttpServletRequest;

public class BaseUtil {
    public static Long getLoginUserId(HttpServletRequest request){
        User user = (User)request.getSession().getAttribute("user");
        return user.getId();
    }
}
